# 7-2 用户转账模拟【组合数据类型】
dic={"aaa":["123456",10000],"bbb":["888888",5000],"ccc":["333333",3000]}
name=input()
if name in dic.keys():
    money = int(input())
    if money<=dic['aaa'][1]:

        #转账金额
        dic['aaa'][1]-=money
        dic[name][1]+=money
        print("Tranfer Success")
        print("{}:{}".format("aaa",dic['aaa'][1]))
        print("{}:{}".format(name,dic[name][1]))
    else:
        print("Insufficient Funds")
else:
    print("Wrong User")